{if $show_survey && $opts}
    {literal}
    <style>
        ul.e-survey {
            padding-left : 5px;
        }

        ul.e-survey>li {
            line-height   : 24px;
            padding-left  : 5px;
            border-bottom : 1px dotted #444;
            position: relative;
            margin:5px 0;
            clear: both;
        }

        ul.e-survey>li:last-child {
            border-bottom : none;
        }

        ul.e-survey>li label {
            display     : inline-block;
            margin-left : 18px;
            color: #888888;
        }
        ul.e-survey>li input{
            position: absolute;
            top: 5px !important;
        }
    </style>
    {/literal}
<div class="box">
<div class="title_sidebar">
    <p>Thăm dò ý kiến</p>
</div>
<div class="support-online get-idea" style="color: #fff !important;">
    <ul>
        <li class="s-g">
            <div class="s-g-name">{$question}</div>
            <ul class="e-survey">
                {foreach from=$opts item=item}
                    <li>
                        <span class="s-name" style="position: relative;">
                            <span style="position: absolute;left: 0;display: inline-block;margin-right: 15px;top:-5px">{$item.control}</span>  <label for="survey_id_{$item.id}" class="">{$item.option}</label>
                        </span>
                    </li>
                    <div class="mb5">

                    </div>
                {/foreach}


            </ul>
        </li>
    </ul>
    <div id="poll_a" class="idea-home">
        <a {$onclick_rate} style="float:left;display:block;margin-top:1px;line-height:normal;height:auto;text-align:center" id="btn">Biểu quyết</a>
        <a {$onclick_view} style="float:right;display:block;margin-top:1px;line-height:normal;height:auto;text-align:center" id="btn">Kết quả</a>
        <div class="c"></div>
    </div>
</div>
</div>{*
<div id="poll" class="br5">
    <div id="poll_header">Thăm dò ý kiến</div>	
    <div id="poll_q"></div>
    <div id="poll_o">
        {foreach from=$opts item=item}
        	<div class="mb5">
            	<div class="fl">{$item.control}</div> <label for="survey_id_{$item.id}" class="fl">{$item.option} {$item.option} {$item.option}</label><div class="c"></div>
            </div>
        {/foreach}	   				   
    </div>	
    <div id="poll_a">
        <a {$onclick_rate} style="float:left;display:block;margin-top:1px;line-height:normal;height:auto;text-align:center" id="btn">Biểu quyết</a>
        <a {$onclick_view} style="float:right;display:block;margin-top:1px;line-height:normal;height:auto;text-align:center" id="btn">Kết quả</a>
        <div class="c"></div>
    </div>	
</div>	*}
    {literal}
    <script>
        function survey_list(item_name) {
            var arr = document.getElementsByName(item_name);
            if (arr.length) {
                st = '';
                for (i = 0; i < arr.length; i++) {
                    if (arr[i].checked) {
                        if (st != '') {
                            st += ',';
                        }
                        st += arr[i].value;
                    }
                }
                return st;
            }
            else {
                if (arr.checked) {
                    return arr.value;
                }
            }
            return '';
        }
    </script>
    {/literal}
{/if}
{if $is_admin}
    {if $edit}<span style="margin-right:10px">{$edit}</span>{/if} {if $delete}<span style="margin-right:15px">{$delete}</span>{/if} {$admin}
{/if}